// 社保类型变更
import request from "@/utils/https/requests";

// 列表
export function sbTypeSubBgList(data: any) {
    return request({
        url: "/sbTypeSubBg/list", method: "post", data,
    });
}

// 添加
export function postAddSbTypeSubBg(data: any) {
    return request({
        url: "/sbTypeSubBg/postAdd", method: "post", data,
    });
}

// 修改
export function postModSbTypeSubBg(data: any) {
    return request({
        url: `/sbTypeSubBg/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteSbTypeSubBg(id: string) {
    return request({
        url: `/sbTypeSubBg/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteSbTypeSubBg = (id) => {
    return request({
        url: `/sbTypeSubBg/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function sbTypeSubBgDetail(id: string) {
    return request({
        url: `/sbTypeSubBg/detail/${id}`, method: "post",
    });
}